package com.itheima.dao;

import com.itheima.model.domain.User;
import com.itheima.model.domain.User_Authority;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
@Mapper
public interface User_AuthorityMapper{
        @Insert("INSERT INTO t_user_authority(id,user_id,authority_id) " +
                "values(#{id},#{userid},#{authorityid})")

        @Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id")

        public void insertAuthority_id(User_Authority user_authority);
}
